﻿@model CloudFranceTriple.Models.ForumTopicSet

@{
    ViewBag.Title = String.Format("{0} - {1}", ViewBag.LabelForumCategory, CloudFranceTriple.WebRole.Properties.Resources.TopicCreateTitle);
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<div class="content-padding">
    <h1>@ViewBag.LabelForumCategory - @CloudFranceTriple.WebRole.Properties.Resources.TopicCreateTitle</h1>
      
    <section>
        @using (Html.BeginForm())
        {
            @Html.AntiForgeryToken()
            @Html.ValidationSummary(true)

            <fieldset>
                <legend>@ViewBag.LabelForumCategory - @CloudFranceTriple.WebRole.Properties.Resources.TopicCreateTitle</legend>

                <div class="editor-label">
                    @CloudFranceTriple.WebRole.Properties.Resources.CategoryLabel
                </div>
                <div class="editor-field">
                    @Html.DropDownList("ForumCategory_Id", String.Empty)
                    @Html.ValidationMessageFor(model => model.ForumCategory_Id)
                </div>

                <div class="editor-label">
                    @CloudFranceTriple.WebRole.Properties.Resources.TopicLabel
                </div>
                <div class="editor-field">
                    @Html.EditorFor(model => model.LabelForumTopic)
                    @Html.ValidationMessageFor(model => model.LabelForumTopic)
                </div>

                <p>
                    <input type="submit" value="@CloudFranceTriple.WebRole.Properties.Resources.ButtonCreate" />
                </p>
            </fieldset>
        }
        @Html.Partial("_BackToTopicByCategoryList")
        @section Scripts {
            @Scripts.Render("~/bundles/jqueryval")
        }
    </section>
</div>
